<template>
	<view class="topbox bj_between">
		<view class="topbox-lrbox bj_left" @click="repage">
			<image src="/static/prev.png" class="topbox-lrbox-prevpic" mode="widthFix"></image>
		</view>
		<view class="tc">
			{{tit}}
		</view>
		<view class="topbox-lrbox">

		</view>
	</view>
</template>

<script setup>
	import {
		ref,
		inject,
		provide
	} from 'vue';
	// 父级返回方法
	const repage = inject("repage");
	const props = defineProps({
		tit: {
			type: String,
			default: ""
		},
	});
</script>

<style scoped lang="scss">
	.topbox {
		height: 88rpx;
		background: #00561D;
		padding: 0 34rpx;
		color: #FFFFFF;
		font-size: 34rpx;
		font-weight: bold;

		&-lrbox {
			width: 40rpx;
			height: 100%;

			&-prevpic {
				width: 30rpx;
			}
		}
	}
</style>